package com.abner.design.patterns.factory.simplefactory.pizza;

/**
 * 披萨
 * @author abner
 */
public abstract class Pizza {

	/**
	 * 披萨名称
	 */
	protected String name;

	/**
	 * 准备
	 */
	public abstract void prepare();

	/**
	 * 烘烤
	 */
	public void bake() {
		System.out.println(name + " baking;");
	}

	/**
	 * 切割
	 */
	public void cut() {
		System.out.println(name + " cutting;");
	}

	/**
	 * 打包
	 */
	public void box() {
		System.out.println(name + " boxing;");
	}

	public void setName(String name) {
		this.name = name;
	}
}
